﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class NetManager
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class NetManager
   ">
    <meta name="generator" content="docfx 2.58.5.0">
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="LiteNetLib.NetManager">
  
  
  <h1 id="LiteNetLib_NetManager" data-uid="LiteNetLib.NetManager" class="text-break">Class NetManager
  </h1>
  <div class="markdown level0 summary"><p>Main class for all network operations. Can be used as client and/or server.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">NetManager</span></div>
  </div>
  <div classs="implements">
    <h5>Implements</h5>
    <div><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a>&gt;</div>
    <div><span class="xref">System.Collections.IEnumerable</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="LiteNetLib.html">LiteNetLib</a></h6>
  <h6><strong>Assembly</strong>: LiteNetLib.dll</h6>
  <h5 id="LiteNetLib_NetManager_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class NetManager : IEnumerable&lt;NetPeer&gt;, IEnumerable</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  
  
  <a id="LiteNetLib_NetManager__ctor_" data-uid="LiteNetLib.NetManager.#ctor*"></a>
  <h4 id="LiteNetLib_NetManager__ctor_LiteNetLib_INetEventListener_LiteNetLib_Layers_PacketLayerBase_" data-uid="LiteNetLib.NetManager.#ctor(LiteNetLib.INetEventListener,LiteNetLib.Layers.PacketLayerBase)">NetManager(INetEventListener, PacketLayerBase)</h4>
  <div class="markdown level1 summary"><p>NetManager constructor</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public NetManager(INetEventListener listener, PacketLayerBase extraPacketLayer = null)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.INetEventListener.html">INetEventListener</a></td>
        <td><span class="parametername">listener</span></td>
        <td><p>Network events listener (also can implement IDeliveryEventListener)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.Layers.PacketLayerBase.html">PacketLayerBase</a></td>
        <td><span class="parametername">extraPacketLayer</span></td>
        <td><p>Extra processing of packages, like CRC checksum or encryption. All connected NetManagers must have same layer.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
  </h3>
  
  
  <h4 id="LiteNetLib_NetManager_AutoRecycle" data-uid="LiteNetLib.NetManager.AutoRecycle">AutoRecycle</h4>
  <div class="markdown level1 summary"><p>Automatically recycle NetPacketReader after OnReceive event</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool AutoRecycle</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_BroadcastReceiveEnabled" data-uid="LiteNetLib.NetManager.BroadcastReceiveEnabled">BroadcastReceiveEnabled</h4>
  <div class="markdown level1 summary"><p>Allows receive broadcast packets</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool BroadcastReceiveEnabled</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_DisconnectOnUnreachable" data-uid="LiteNetLib.NetManager.DisconnectOnUnreachable">DisconnectOnUnreachable</h4>
  <div class="markdown level1 summary"><p>Disconnect peers if HostUnreachable or NetworkUnreachable spawned (old behaviour 0.9.x was true)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool DisconnectOnUnreachable</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_DisconnectTimeout" data-uid="LiteNetLib.NetManager.DisconnectTimeout">DisconnectTimeout</h4>
  <div class="markdown level1 summary"><p>If NetManager doesn&apos;t receive any packet from remote peer during this time (in milliseconds) then connection will be closed
(including library internal keepalive packets)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int DisconnectTimeout</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_EnableStatistics" data-uid="LiteNetLib.NetManager.EnableStatistics">EnableStatistics</h4>
  <div class="markdown level1 summary"><p>Toggles the collection of network statistics for the instance and all known peers</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool EnableStatistics</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_IPv6Mode" data-uid="LiteNetLib.NetManager.IPv6Mode">IPv6Mode</h4>
  <div class="markdown level1 summary"><p>IPv6 support</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IPv6Mode IPv6Mode</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.IPv6Mode.html">IPv6Mode</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_MaxConnectAttempts" data-uid="LiteNetLib.NetManager.MaxConnectAttempts">MaxConnectAttempts</h4>
  <div class="markdown level1 summary"><p>Maximum connection attempts before client stops and call disconnect event.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int MaxConnectAttempts</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_MtuOverride" data-uid="LiteNetLib.NetManager.MtuOverride">MtuOverride</h4>
  <div class="markdown level1 summary"><p>Override MTU for all new peers registered in this NetManager, will ignores MTU Discovery!</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int MtuOverride</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_NatPunchEnabled" data-uid="LiteNetLib.NetManager.NatPunchEnabled">NatPunchEnabled</h4>
  <div class="markdown level1 summary"><p>Enable nat punch messages</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool NatPunchEnabled</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_NatPunchModule" data-uid="LiteNetLib.NetManager.NatPunchModule">NatPunchModule</h4>
  <div class="markdown level1 summary"><p>NatPunchModule for NAT hole punching operations</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public readonly NatPunchModule NatPunchModule</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NatPunchModule.html">NatPunchModule</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_PingInterval" data-uid="LiteNetLib.NetManager.PingInterval">PingInterval</h4>
  <div class="markdown level1 summary"><p>Interval for latency detection and checking connection (in milliseconds)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int PingInterval</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_ReconnectDelay" data-uid="LiteNetLib.NetManager.ReconnectDelay">ReconnectDelay</h4>
  <div class="markdown level1 summary"><p>Delay between initial connection attempts (in milliseconds)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int ReconnectDelay</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_ReuseAddress" data-uid="LiteNetLib.NetManager.ReuseAddress">ReuseAddress</h4>
  <div class="markdown level1 summary"><p>Enables socket option &quot;ReuseAddress&quot; for specific purposes</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool ReuseAddress</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_SimulateLatency" data-uid="LiteNetLib.NetManager.SimulateLatency">SimulateLatency</h4>
  <div class="markdown level1 summary"><p>Simulate latency by holding packets for random time. (Works only in DEBUG mode)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool SimulateLatency</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_SimulatePacketLoss" data-uid="LiteNetLib.NetManager.SimulatePacketLoss">SimulatePacketLoss</h4>
  <div class="markdown level1 summary"><p>Simulate packet loss by dropping random amount of packets. (Works only in DEBUG mode)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool SimulatePacketLoss</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_SimulationMaxLatency" data-uid="LiteNetLib.NetManager.SimulationMaxLatency">SimulationMaxLatency</h4>
  <div class="markdown level1 summary"><p>Maximum simulated latency (in milliseconds)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int SimulationMaxLatency</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_SimulationMinLatency" data-uid="LiteNetLib.NetManager.SimulationMinLatency">SimulationMinLatency</h4>
  <div class="markdown level1 summary"><p>Minimum simulated latency (in milliseconds)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int SimulationMinLatency</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_SimulationPacketLossChance" data-uid="LiteNetLib.NetManager.SimulationPacketLossChance">SimulationPacketLossChance</h4>
  <div class="markdown level1 summary"><p>Chance of packet loss when simulation enabled. value in percents (1 - 100).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int SimulationPacketLossChance</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_Statistics" data-uid="LiteNetLib.NetManager.Statistics">Statistics</h4>
  <div class="markdown level1 summary"><p>Statistics of all connections</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public readonly NetStatistics Statistics</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetStatistics.html">NetStatistics</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_UnconnectedMessagesEnabled" data-uid="LiteNetLib.NetManager.UnconnectedMessagesEnabled">UnconnectedMessagesEnabled</h4>
  <div class="markdown level1 summary"><p>Enable messages receiving without connection. (with SendUnconnectedMessage method)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool UnconnectedMessagesEnabled</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_UnsyncedDeliveryEvent" data-uid="LiteNetLib.NetManager.UnsyncedDeliveryEvent">UnsyncedDeliveryEvent</h4>
  <div class="markdown level1 summary"><p>If true - delivery event will be called from &quot;receive&quot; thread immediately otherwise on PollEvents call</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool UnsyncedDeliveryEvent</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_UnsyncedEvents" data-uid="LiteNetLib.NetManager.UnsyncedEvents">UnsyncedEvents</h4>
  <div class="markdown level1 summary"><p>Events automatically will be called without PollEvents method from another thread</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool UnsyncedEvents</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_UnsyncedReceiveEvent" data-uid="LiteNetLib.NetManager.UnsyncedReceiveEvent">UnsyncedReceiveEvent</h4>
  <div class="markdown level1 summary"><p>If true - receive event will be called from &quot;receive&quot; thread immediately otherwise on PollEvents call</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool UnsyncedReceiveEvent</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_UpdateTime" data-uid="LiteNetLib.NetManager.UpdateTime">UpdateTime</h4>
  <div class="markdown level1 summary"><p>Library logic update and send period in milliseconds
Lowest values in Windows doesn&apos;t change much because of Thread.Sleep precision
To more frequent sends (or sends tied to your game logic) use <a class="xref" href="LiteNetLib.NetManager.html#LiteNetLib_NetManager_TriggerUpdate">TriggerUpdate()</a></p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int UpdateTime</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_UseNativeSockets" data-uid="LiteNetLib.NetManager.UseNativeSockets">UseNativeSockets</h4>
  <div class="markdown level1 summary"><p>Experimental feature mostly for servers. Only for Windows/Linux
use direct socket calls for send/receive to drastically increase speed and reduce GC pressure</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool UseNativeSockets</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="LiteNetLib_NetManager_UseSafeMtu" data-uid="LiteNetLib.NetManager.UseSafeMtu">UseSafeMtu</h4>
  <div class="markdown level1 summary"><p>Sets initial MTU to lowest possible value according to RFC1191 (576 bytes)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool UseSafeMtu</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
  </h3>
  
  
  <a id="LiteNetLib_NetManager_ChannelsCount_" data-uid="LiteNetLib.NetManager.ChannelsCount*"></a>
  <h4 id="LiteNetLib_NetManager_ChannelsCount" data-uid="LiteNetLib.NetManager.ChannelsCount">ChannelsCount</h4>
  <div class="markdown level1 summary"><p>QoS channel count per message type (value must be between 1 and 64 channels)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public byte ChannelsCount { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_ConnectedPeerList_" data-uid="LiteNetLib.NetManager.ConnectedPeerList*"></a>
  <h4 id="LiteNetLib_NetManager_ConnectedPeerList" data-uid="LiteNetLib.NetManager.ConnectedPeerList">ConnectedPeerList</h4>
  <div class="markdown level1 summary"><p>Returns connected peers list (with internal cached list)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public List&lt;NetPeer&gt; ConnectedPeerList { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_ConnectedPeersCount_" data-uid="LiteNetLib.NetManager.ConnectedPeersCount*"></a>
  <h4 id="LiteNetLib_NetManager_ConnectedPeersCount" data-uid="LiteNetLib.NetManager.ConnectedPeersCount">ConnectedPeersCount</h4>
  <div class="markdown level1 summary"><p>Returns connected peers count</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int ConnectedPeersCount { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_ExtraPacketSizeForLayer_" data-uid="LiteNetLib.NetManager.ExtraPacketSizeForLayer*"></a>
  <h4 id="LiteNetLib_NetManager_ExtraPacketSizeForLayer" data-uid="LiteNetLib.NetManager.ExtraPacketSizeForLayer">ExtraPacketSizeForLayer</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int ExtraPacketSizeForLayer { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_FirstPeer_" data-uid="LiteNetLib.NetManager.FirstPeer*"></a>
  <h4 id="LiteNetLib_NetManager_FirstPeer" data-uid="LiteNetLib.NetManager.FirstPeer">FirstPeer</h4>
  <div class="markdown level1 summary"><p>First peer. Useful for Client mode</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public NetPeer FirstPeer { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_IsRunning_" data-uid="LiteNetLib.NetManager.IsRunning*"></a>
  <h4 id="LiteNetLib_NetManager_IsRunning" data-uid="LiteNetLib.NetManager.IsRunning">IsRunning</h4>
  <div class="markdown level1 summary"><p>Returns true if socket listening and update thread is running</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool IsRunning { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_LocalPort_" data-uid="LiteNetLib.NetManager.LocalPort*"></a>
  <h4 id="LiteNetLib_NetManager_LocalPort" data-uid="LiteNetLib.NetManager.LocalPort">LocalPort</h4>
  <div class="markdown level1 summary"><p>Local EndPoint (host and port)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int LocalPort { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  
  
  <a id="LiteNetLib_NetManager_Connect_" data-uid="LiteNetLib.NetManager.Connect*"></a>
  <h4 id="LiteNetLib_NetManager_Connect_System_Net_IPEndPoint_LiteNetLib_Utils_NetDataWriter_" data-uid="LiteNetLib.NetManager.Connect(System.Net.IPEndPoint,LiteNetLib.Utils.NetDataWriter)">Connect(IPEndPoint, NetDataWriter)</h4>
  <div class="markdown level1 summary"><p>Connect to remote host</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public NetPeer Connect(IPEndPoint target, NetDataWriter connectionData)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Net.IPEndPoint</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Server end point (ip and port)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.Utils.NetDataWriter.html">NetDataWriter</a></td>
        <td><span class="parametername">connectionData</span></td>
        <td><p>Additional data for remote peer</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><p>New NetPeer if new connection, Old NetPeer if already connected, null peer if there is ConnectionRequest awaiting</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.InvalidOperationException</span></td>
        <td><p>Manager is not running. Call <a class="xref" href="LiteNetLib.NetManager.html#LiteNetLib_NetManager_Start">Start()</a></p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_Connect_" data-uid="LiteNetLib.NetManager.Connect*"></a>
  <h4 id="LiteNetLib_NetManager_Connect_System_Net_IPEndPoint_System_String_" data-uid="LiteNetLib.NetManager.Connect(System.Net.IPEndPoint,System.String)">Connect(IPEndPoint, String)</h4>
  <div class="markdown level1 summary"><p>Connect to remote host</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public NetPeer Connect(IPEndPoint target, string key)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Net.IPEndPoint</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Server end point (ip and port)</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">key</span></td>
        <td><p>Connection key</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><p>New NetPeer if new connection, Old NetPeer if already connected, null peer if there is ConnectionRequest awaiting</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.InvalidOperationException</span></td>
        <td><p>Manager is not running. Call <a class="xref" href="LiteNetLib.NetManager.html#LiteNetLib_NetManager_Start">Start()</a></p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_Connect_" data-uid="LiteNetLib.NetManager.Connect*"></a>
  <h4 id="LiteNetLib_NetManager_Connect_System_String_System_Int32_LiteNetLib_Utils_NetDataWriter_" data-uid="LiteNetLib.NetManager.Connect(System.String,System.Int32,LiteNetLib.Utils.NetDataWriter)">Connect(String, Int32, NetDataWriter)</h4>
  <div class="markdown level1 summary"><p>Connect to remote host</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public NetPeer Connect(string address, int port, NetDataWriter connectionData)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">address</span></td>
        <td><p>Server IP or hostname</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td><p>Server Port</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.Utils.NetDataWriter.html">NetDataWriter</a></td>
        <td><span class="parametername">connectionData</span></td>
        <td><p>Additional data for remote peer</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><p>New NetPeer if new connection, Old NetPeer if already connected, null peer if there is ConnectionRequest awaiting</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.InvalidOperationException</span></td>
        <td><p>Manager is not running. Call <a class="xref" href="LiteNetLib.NetManager.html#LiteNetLib_NetManager_Start">Start()</a></p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_Connect_" data-uid="LiteNetLib.NetManager.Connect*"></a>
  <h4 id="LiteNetLib_NetManager_Connect_System_String_System_Int32_System_String_" data-uid="LiteNetLib.NetManager.Connect(System.String,System.Int32,System.String)">Connect(String, Int32, String)</h4>
  <div class="markdown level1 summary"><p>Connect to remote host</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public NetPeer Connect(string address, int port, string key)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">address</span></td>
        <td><p>Server IP or hostname</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td><p>Server Port</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">key</span></td>
        <td><p>Connection key</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><p>New NetPeer if new connection, Old NetPeer if already connected, null peer if there is ConnectionRequest awaiting</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.InvalidOperationException</span></td>
        <td><p>Manager is not running. Call <a class="xref" href="LiteNetLib.NetManager.html#LiteNetLib_NetManager_Start">Start()</a></p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_CreateNtpRequest_" data-uid="LiteNetLib.NetManager.CreateNtpRequest*"></a>
  <h4 id="LiteNetLib_NetManager_CreateNtpRequest_System_Net_IPEndPoint_" data-uid="LiteNetLib.NetManager.CreateNtpRequest(System.Net.IPEndPoint)">CreateNtpRequest(IPEndPoint)</h4>
  <div class="markdown level1 summary"><p>Create the requests for NTP server</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void CreateNtpRequest(IPEndPoint endPoint)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Net.IPEndPoint</span></td>
        <td><span class="parametername">endPoint</span></td>
        <td><p>NTP Server address.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_CreateNtpRequest_" data-uid="LiteNetLib.NetManager.CreateNtpRequest*"></a>
  <h4 id="LiteNetLib_NetManager_CreateNtpRequest_System_String_" data-uid="LiteNetLib.NetManager.CreateNtpRequest(System.String)">CreateNtpRequest(String)</h4>
  <div class="markdown level1 summary"><p>Create the requests for NTP server (default port)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void CreateNtpRequest(string ntpServerAddress)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">ntpServerAddress</span></td>
        <td><p>NTP Server address.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_CreateNtpRequest_" data-uid="LiteNetLib.NetManager.CreateNtpRequest*"></a>
  <h4 id="LiteNetLib_NetManager_CreateNtpRequest_System_String_System_Int32_" data-uid="LiteNetLib.NetManager.CreateNtpRequest(System.String,System.Int32)">CreateNtpRequest(String, Int32)</h4>
  <div class="markdown level1 summary"><p>Create the requests for NTP server</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void CreateNtpRequest(string ntpServerAddress, int port)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">ntpServerAddress</span></td>
        <td><p>NTP Server address.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td><p>port</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_DisconnectAll_" data-uid="LiteNetLib.NetManager.DisconnectAll*"></a>
  <h4 id="LiteNetLib_NetManager_DisconnectAll" data-uid="LiteNetLib.NetManager.DisconnectAll">DisconnectAll()</h4>
  <div class="markdown level1 summary"><p>Disconnect all peers without any additional data</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void DisconnectAll()</code></pre>
  </div>
  
  
  <a id="LiteNetLib_NetManager_DisconnectAll_" data-uid="LiteNetLib.NetManager.DisconnectAll*"></a>
  <h4 id="LiteNetLib_NetManager_DisconnectAll_System_Byte___System_Int32_System_Int32_" data-uid="LiteNetLib.NetManager.DisconnectAll(System.Byte[],System.Int32,System.Int32)">DisconnectAll(Byte[], Int32, Int32)</h4>
  <div class="markdown level1 summary"><p>Disconnect all peers with shutdown message</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void DisconnectAll(byte[] data, int start, int count)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>Data to send (must be less or equal MTU)</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">start</span></td>
        <td><p>Data start</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">count</span></td>
        <td><p>Data count</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_DisconnectPeer_" data-uid="LiteNetLib.NetManager.DisconnectPeer*"></a>
  <h4 id="LiteNetLib_NetManager_DisconnectPeer_LiteNetLib_NetPeer_" data-uid="LiteNetLib.NetManager.DisconnectPeer(LiteNetLib.NetPeer)">DisconnectPeer(NetPeer)</h4>
  <div class="markdown level1 summary"><p>Disconnect peer from server</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void DisconnectPeer(NetPeer peer)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">peer</span></td>
        <td><p>peer to disconnect</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_DisconnectPeer_" data-uid="LiteNetLib.NetManager.DisconnectPeer*"></a>
  <h4 id="LiteNetLib_NetManager_DisconnectPeer_LiteNetLib_NetPeer_LiteNetLib_Utils_NetDataWriter_" data-uid="LiteNetLib.NetManager.DisconnectPeer(LiteNetLib.NetPeer,LiteNetLib.Utils.NetDataWriter)">DisconnectPeer(NetPeer, NetDataWriter)</h4>
  <div class="markdown level1 summary"><p>Disconnect peer from server and send additional data (Size must be less or equal MTU - 8)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void DisconnectPeer(NetPeer peer, NetDataWriter writer)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">peer</span></td>
        <td><p>peer to disconnect</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.Utils.NetDataWriter.html">NetDataWriter</a></td>
        <td><span class="parametername">writer</span></td>
        <td><p>additional data</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_DisconnectPeer_" data-uid="LiteNetLib.NetManager.DisconnectPeer*"></a>
  <h4 id="LiteNetLib_NetManager_DisconnectPeer_LiteNetLib_NetPeer_System_Byte___" data-uid="LiteNetLib.NetManager.DisconnectPeer(LiteNetLib.NetPeer,System.Byte[])">DisconnectPeer(NetPeer, Byte[])</h4>
  <div class="markdown level1 summary"><p>Disconnect peer from server and send additional data (Size must be less or equal MTU - 8)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void DisconnectPeer(NetPeer peer, byte[] data)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">peer</span></td>
        <td><p>peer to disconnect</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>additional data</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_DisconnectPeer_" data-uid="LiteNetLib.NetManager.DisconnectPeer*"></a>
  <h4 id="LiteNetLib_NetManager_DisconnectPeer_LiteNetLib_NetPeer_System_Byte___System_Int32_System_Int32_" data-uid="LiteNetLib.NetManager.DisconnectPeer(LiteNetLib.NetPeer,System.Byte[],System.Int32,System.Int32)">DisconnectPeer(NetPeer, Byte[], Int32, Int32)</h4>
  <div class="markdown level1 summary"><p>Disconnect peer from server and send additional data (Size must be less or equal MTU - 8)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void DisconnectPeer(NetPeer peer, byte[] data, int start, int count)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">peer</span></td>
        <td><p>peer to disconnect</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>additional data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">start</span></td>
        <td><p>data start</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">count</span></td>
        <td><p>data length</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_DisconnectPeerForce_" data-uid="LiteNetLib.NetManager.DisconnectPeerForce*"></a>
  <h4 id="LiteNetLib_NetManager_DisconnectPeerForce_LiteNetLib_NetPeer_" data-uid="LiteNetLib.NetManager.DisconnectPeerForce(LiteNetLib.NetPeer)">DisconnectPeerForce(NetPeer)</h4>
  <div class="markdown level1 summary"><p>Immediately disconnect peer from server without additional data</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void DisconnectPeerForce(NetPeer peer)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">peer</span></td>
        <td><p>peer to disconnect</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_GetEnumerator_" data-uid="LiteNetLib.NetManager.GetEnumerator*"></a>
  <h4 id="LiteNetLib_NetManager_GetEnumerator" data-uid="LiteNetLib.NetManager.GetEnumerator">GetEnumerator()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public NetManager.NetPeerEnumerator GetEnumerator()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetManager.NetPeerEnumerator.html">NetManager.NetPeerEnumerator</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_GetPeerById_" data-uid="LiteNetLib.NetManager.GetPeerById*"></a>
  <h4 id="LiteNetLib_NetManager_GetPeerById_System_Int32_" data-uid="LiteNetLib.NetManager.GetPeerById(System.Int32)">GetPeerById(Int32)</h4>
  <div class="markdown level1 summary"><p>Gets peer by peer id</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public NetPeer GetPeerById(int id)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">id</span></td>
        <td><p>id of peer</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><p>Peer if peer with id exist, otherwise null</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_GetPeersCount_" data-uid="LiteNetLib.NetManager.GetPeersCount*"></a>
  <h4 id="LiteNetLib_NetManager_GetPeersCount_LiteNetLib_ConnectionState_" data-uid="LiteNetLib.NetManager.GetPeersCount(LiteNetLib.ConnectionState)">GetPeersCount(ConnectionState)</h4>
  <div class="markdown level1 summary"><p>Return peers count with connection state</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int GetPeersCount(ConnectionState peerState)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.ConnectionState.html">ConnectionState</a></td>
        <td><span class="parametername">peerState</span></td>
        <td><p>peer connection state (you can use as bit flags)</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>peers count</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_GetPeersNonAlloc_" data-uid="LiteNetLib.NetManager.GetPeersNonAlloc*"></a>
  <h4 id="LiteNetLib_NetManager_GetPeersNonAlloc_System_Collections_Generic_List_LiteNetLib_NetPeer__LiteNetLib_ConnectionState_" data-uid="LiteNetLib.NetManager.GetPeersNonAlloc(System.Collections.Generic.List{LiteNetLib.NetPeer},LiteNetLib.ConnectionState)">GetPeersNonAlloc(List&lt;NetPeer&gt;, ConnectionState)</h4>
  <div class="markdown level1 summary"><p>Get copy of peers (without allocations)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void GetPeersNonAlloc(List&lt;NetPeer&gt; peers, ConnectionState peerState)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a>&gt;</td>
        <td><span class="parametername">peers</span></td>
        <td><p>List that will contain result</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.ConnectionState.html">ConnectionState</a></td>
        <td><span class="parametername">peerState</span></td>
        <td><p>State of peers</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_ManualUpdate_" data-uid="LiteNetLib.NetManager.ManualUpdate*"></a>
  <h4 id="LiteNetLib_NetManager_ManualUpdate_System_Int32_" data-uid="LiteNetLib.NetManager.ManualUpdate(System.Int32)">ManualUpdate(Int32)</h4>
  <div class="markdown level1 summary"><p>Update and send logic. Use this only when NetManager started in manual mode</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void ManualUpdate(int elapsedMilliseconds)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">elapsedMilliseconds</span></td>
        <td><p>elapsed milliseconds since last update call</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_PollEvents_" data-uid="LiteNetLib.NetManager.PollEvents*"></a>
  <h4 id="LiteNetLib_NetManager_PollEvents" data-uid="LiteNetLib.NetManager.PollEvents">PollEvents()</h4>
  <div class="markdown level1 summary"><p>Receive all pending events. Call this in game update code
In Manual mode it will call also socket Receive (which can be slow)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void PollEvents()</code></pre>
  </div>
  
  
  <a id="LiteNetLib_NetManager_SendBroadcast_" data-uid="LiteNetLib.NetManager.SendBroadcast*"></a>
  <h4 id="LiteNetLib_NetManager_SendBroadcast_LiteNetLib_Utils_NetDataWriter_System_Int32_" data-uid="LiteNetLib.NetManager.SendBroadcast(LiteNetLib.Utils.NetDataWriter,System.Int32)">SendBroadcast(NetDataWriter, Int32)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool SendBroadcast(NetDataWriter writer, int port)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.Utils.NetDataWriter.html">NetDataWriter</a></td>
        <td><span class="parametername">writer</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendBroadcast_" data-uid="LiteNetLib.NetManager.SendBroadcast*"></a>
  <h4 id="LiteNetLib_NetManager_SendBroadcast_System_Byte___System_Int32_" data-uid="LiteNetLib.NetManager.SendBroadcast(System.Byte[],System.Int32)">SendBroadcast(Byte[], Int32)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool SendBroadcast(byte[] data, int port)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendBroadcast_" data-uid="LiteNetLib.NetManager.SendBroadcast*"></a>
  <h4 id="LiteNetLib_NetManager_SendBroadcast_System_Byte___System_Int32_System_Int32_System_Int32_" data-uid="LiteNetLib.NetManager.SendBroadcast(System.Byte[],System.Int32,System.Int32,System.Int32)">SendBroadcast(Byte[], Int32, Int32, Int32)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool SendBroadcast(byte[] data, int start, int length, int port)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">start</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">length</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_LiteNetLib_Utils_NetDataWriter_LiteNetLib_DeliveryMethod_" data-uid="LiteNetLib.NetManager.SendToAll(LiteNetLib.Utils.NetDataWriter,LiteNetLib.DeliveryMethod)">SendToAll(NetDataWriter, DeliveryMethod)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers (channel - 0)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(NetDataWriter writer, DeliveryMethod options)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.Utils.NetDataWriter.html">NetDataWriter</a></td>
        <td><span class="parametername">writer</span></td>
        <td><p>DataWriter with data</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_LiteNetLib_Utils_NetDataWriter_LiteNetLib_DeliveryMethod_LiteNetLib_NetPeer_" data-uid="LiteNetLib.NetManager.SendToAll(LiteNetLib.Utils.NetDataWriter,LiteNetLib.DeliveryMethod,LiteNetLib.NetPeer)">SendToAll(NetDataWriter, DeliveryMethod, NetPeer)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers (channel - 0)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(NetDataWriter writer, DeliveryMethod options, NetPeer excludePeer)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.Utils.NetDataWriter.html">NetDataWriter</a></td>
        <td><span class="parametername">writer</span></td>
        <td><p>DataWriter with data</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">excludePeer</span></td>
        <td><p>Excluded peer</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_LiteNetLib_Utils_NetDataWriter_System_Byte_LiteNetLib_DeliveryMethod_" data-uid="LiteNetLib.NetManager.SendToAll(LiteNetLib.Utils.NetDataWriter,System.Byte,LiteNetLib.DeliveryMethod)">SendToAll(NetDataWriter, Byte, DeliveryMethod)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(NetDataWriter writer, byte channelNumber, DeliveryMethod options)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.Utils.NetDataWriter.html">NetDataWriter</a></td>
        <td><span class="parametername">writer</span></td>
        <td><p>DataWriter with data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Byte</span></td>
        <td><span class="parametername">channelNumber</span></td>
        <td><p>Number of channel (from 0 to channelsCount - 1)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_LiteNetLib_Utils_NetDataWriter_System_Byte_LiteNetLib_DeliveryMethod_LiteNetLib_NetPeer_" data-uid="LiteNetLib.NetManager.SendToAll(LiteNetLib.Utils.NetDataWriter,System.Byte,LiteNetLib.DeliveryMethod,LiteNetLib.NetPeer)">SendToAll(NetDataWriter, Byte, DeliveryMethod, NetPeer)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(NetDataWriter writer, byte channelNumber, DeliveryMethod options, NetPeer excludePeer)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.Utils.NetDataWriter.html">NetDataWriter</a></td>
        <td><span class="parametername">writer</span></td>
        <td><p>DataWriter with data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Byte</span></td>
        <td><span class="parametername">channelNumber</span></td>
        <td><p>Number of channel (from 0 to channelsCount - 1)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">excludePeer</span></td>
        <td><p>Excluded peer</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_System_Byte___LiteNetLib_DeliveryMethod_" data-uid="LiteNetLib.NetManager.SendToAll(System.Byte[],LiteNetLib.DeliveryMethod)">SendToAll(Byte[], DeliveryMethod)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers (channel - 0)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(byte[] data, DeliveryMethod options)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>Data</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_System_Byte___LiteNetLib_DeliveryMethod_LiteNetLib_NetPeer_" data-uid="LiteNetLib.NetManager.SendToAll(System.Byte[],LiteNetLib.DeliveryMethod,LiteNetLib.NetPeer)">SendToAll(Byte[], DeliveryMethod, NetPeer)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers (channel - 0)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(byte[] data, DeliveryMethod options, NetPeer excludePeer)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>Data</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">excludePeer</span></td>
        <td><p>Excluded peer</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_System_Byte___System_Byte_LiteNetLib_DeliveryMethod_" data-uid="LiteNetLib.NetManager.SendToAll(System.Byte[],System.Byte,LiteNetLib.DeliveryMethod)">SendToAll(Byte[], Byte, DeliveryMethod)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(byte[] data, byte channelNumber, DeliveryMethod options)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>Data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Byte</span></td>
        <td><span class="parametername">channelNumber</span></td>
        <td><p>Number of channel (from 0 to channelsCount - 1)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_System_Byte___System_Byte_LiteNetLib_DeliveryMethod_LiteNetLib_NetPeer_" data-uid="LiteNetLib.NetManager.SendToAll(System.Byte[],System.Byte,LiteNetLib.DeliveryMethod,LiteNetLib.NetPeer)">SendToAll(Byte[], Byte, DeliveryMethod, NetPeer)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(byte[] data, byte channelNumber, DeliveryMethod options, NetPeer excludePeer)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>Data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Byte</span></td>
        <td><span class="parametername">channelNumber</span></td>
        <td><p>Number of channel (from 0 to channelsCount - 1)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">excludePeer</span></td>
        <td><p>Excluded peer</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_System_Byte___System_Int32_System_Int32_LiteNetLib_DeliveryMethod_" data-uid="LiteNetLib.NetManager.SendToAll(System.Byte[],System.Int32,System.Int32,LiteNetLib.DeliveryMethod)">SendToAll(Byte[], Int32, Int32, DeliveryMethod)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers (channel - 0)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(byte[] data, int start, int length, DeliveryMethod options)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>Data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">start</span></td>
        <td><p>Start of data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">length</span></td>
        <td><p>Length of data</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_System_Byte___System_Int32_System_Int32_LiteNetLib_DeliveryMethod_LiteNetLib_NetPeer_" data-uid="LiteNetLib.NetManager.SendToAll(System.Byte[],System.Int32,System.Int32,LiteNetLib.DeliveryMethod,LiteNetLib.NetPeer)">SendToAll(Byte[], Int32, Int32, DeliveryMethod, NetPeer)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers (channel - 0)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(byte[] data, int start, int length, DeliveryMethod options, NetPeer excludePeer)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>Data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">start</span></td>
        <td><p>Start of data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">length</span></td>
        <td><p>Length of data</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">excludePeer</span></td>
        <td><p>Excluded peer</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_System_Byte___System_Int32_System_Int32_System_Byte_LiteNetLib_DeliveryMethod_" data-uid="LiteNetLib.NetManager.SendToAll(System.Byte[],System.Int32,System.Int32,System.Byte,LiteNetLib.DeliveryMethod)">SendToAll(Byte[], Int32, Int32, Byte, DeliveryMethod)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(byte[] data, int start, int length, byte channelNumber, DeliveryMethod options)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>Data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">start</span></td>
        <td><p>Start of data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">length</span></td>
        <td><p>Length of data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Byte</span></td>
        <td><span class="parametername">channelNumber</span></td>
        <td><p>Number of channel (from 0 to channelsCount - 1)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendToAll_" data-uid="LiteNetLib.NetManager.SendToAll*"></a>
  <h4 id="LiteNetLib_NetManager_SendToAll_System_Byte___System_Int32_System_Int32_System_Byte_LiteNetLib_DeliveryMethod_LiteNetLib_NetPeer_" data-uid="LiteNetLib.NetManager.SendToAll(System.Byte[],System.Int32,System.Int32,System.Byte,LiteNetLib.DeliveryMethod,LiteNetLib.NetPeer)">SendToAll(Byte[], Int32, Int32, Byte, DeliveryMethod, NetPeer)</h4>
  <div class="markdown level1 summary"><p>Send data to all connected peers</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void SendToAll(byte[] data, int start, int length, byte channelNumber, DeliveryMethod options, NetPeer excludePeer)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">data</span></td>
        <td><p>Data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">start</span></td>
        <td><p>Start of data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">length</span></td>
        <td><p>Length of data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Byte</span></td>
        <td><span class="parametername">channelNumber</span></td>
        <td><p>Number of channel (from 0 to channelsCount - 1)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.DeliveryMethod.html">DeliveryMethod</a></td>
        <td><span class="parametername">options</span></td>
        <td><p>Send options (reliable, unreliable, etc.)</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a></td>
        <td><span class="parametername">excludePeer</span></td>
        <td><p>Excluded peer</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendUnconnectedMessage_" data-uid="LiteNetLib.NetManager.SendUnconnectedMessage*"></a>
  <h4 id="LiteNetLib_NetManager_SendUnconnectedMessage_LiteNetLib_Utils_NetDataWriter_System_Net_IPEndPoint_" data-uid="LiteNetLib.NetManager.SendUnconnectedMessage(LiteNetLib.Utils.NetDataWriter,System.Net.IPEndPoint)">SendUnconnectedMessage(NetDataWriter, IPEndPoint)</h4>
  <div class="markdown level1 summary"><p>Send message without connection</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool SendUnconnectedMessage(NetDataWriter writer, IPEndPoint remoteEndPoint)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="LiteNetLib.Utils.NetDataWriter.html">NetDataWriter</a></td>
        <td><span class="parametername">writer</span></td>
        <td><p>Data serializer</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Net.IPEndPoint</span></td>
        <td><span class="parametername">remoteEndPoint</span></td>
        <td><p>Packet destination</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>Operation result</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendUnconnectedMessage_" data-uid="LiteNetLib.NetManager.SendUnconnectedMessage*"></a>
  <h4 id="LiteNetLib_NetManager_SendUnconnectedMessage_System_Byte___System_Int32_System_Int32_System_Net_IPEndPoint_" data-uid="LiteNetLib.NetManager.SendUnconnectedMessage(System.Byte[],System.Int32,System.Int32,System.Net.IPEndPoint)">SendUnconnectedMessage(Byte[], Int32, Int32, IPEndPoint)</h4>
  <div class="markdown level1 summary"><p>Send message without connection</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool SendUnconnectedMessage(byte[] message, int start, int length, IPEndPoint remoteEndPoint)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">message</span></td>
        <td><p>Raw data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">start</span></td>
        <td><p>data start</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">length</span></td>
        <td><p>data length</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Net.IPEndPoint</span></td>
        <td><span class="parametername">remoteEndPoint</span></td>
        <td><p>Packet destination</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>Operation result</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_SendUnconnectedMessage_" data-uid="LiteNetLib.NetManager.SendUnconnectedMessage*"></a>
  <h4 id="LiteNetLib_NetManager_SendUnconnectedMessage_System_Byte___System_Net_IPEndPoint_" data-uid="LiteNetLib.NetManager.SendUnconnectedMessage(System.Byte[],System.Net.IPEndPoint)">SendUnconnectedMessage(Byte[], IPEndPoint)</h4>
  <div class="markdown level1 summary"><p>Send message without connection</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool SendUnconnectedMessage(byte[] message, IPEndPoint remoteEndPoint)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">message</span></td>
        <td><p>Raw data</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Net.IPEndPoint</span></td>
        <td><span class="parametername">remoteEndPoint</span></td>
        <td><p>Packet destination</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>Operation result</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_Start_" data-uid="LiteNetLib.NetManager.Start*"></a>
  <h4 id="LiteNetLib_NetManager_Start" data-uid="LiteNetLib.NetManager.Start">Start()</h4>
  <div class="markdown level1 summary"><p>Start logic thread and listening on available port</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool Start()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_Start_" data-uid="LiteNetLib.NetManager.Start*"></a>
  <h4 id="LiteNetLib_NetManager_Start_System_Int32_" data-uid="LiteNetLib.NetManager.Start(System.Int32)">Start(Int32)</h4>
  <div class="markdown level1 summary"><p>Start logic thread and listening on selected port</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool Start(int port)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td><p>port to listen</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_Start_" data-uid="LiteNetLib.NetManager.Start*"></a>
  <h4 id="LiteNetLib_NetManager_Start_System_Net_IPAddress_System_Net_IPAddress_System_Int32_" data-uid="LiteNetLib.NetManager.Start(System.Net.IPAddress,System.Net.IPAddress,System.Int32)">Start(IPAddress, IPAddress, Int32)</h4>
  <div class="markdown level1 summary"><p>Start logic thread and listening on selected port</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool Start(IPAddress addressIPv4, IPAddress addressIPv6, int port)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Net.IPAddress</span></td>
        <td><span class="parametername">addressIPv4</span></td>
        <td><p>bind to specific ipv4 address</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Net.IPAddress</span></td>
        <td><span class="parametername">addressIPv6</span></td>
        <td><p>bind to specific ipv6 address</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td><p>port to listen</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_Start_" data-uid="LiteNetLib.NetManager.Start*"></a>
  <h4 id="LiteNetLib_NetManager_Start_System_String_System_String_System_Int32_" data-uid="LiteNetLib.NetManager.Start(System.String,System.String,System.Int32)">Start(String, String, Int32)</h4>
  <div class="markdown level1 summary"><p>Start logic thread and listening on selected port</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool Start(string addressIPv4, string addressIPv6, int port)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">addressIPv4</span></td>
        <td><p>bind to specific ipv4 address</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">addressIPv6</span></td>
        <td><p>bind to specific ipv6 address</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td><p>port to listen</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_StartInManualMode_" data-uid="LiteNetLib.NetManager.StartInManualMode*"></a>
  <h4 id="LiteNetLib_NetManager_StartInManualMode_System_Int32_" data-uid="LiteNetLib.NetManager.StartInManualMode(System.Int32)">StartInManualMode(Int32)</h4>
  <div class="markdown level1 summary"><p>Start in manual mode and listening on selected port
In this mode you should use ManualReceive (without PollEvents) for receive packets
and ManualUpdate(...) for update and send packets
This mode useful mostly for single-threaded servers</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool StartInManualMode(int port)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td><p>port to listen</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_StartInManualMode_" data-uid="LiteNetLib.NetManager.StartInManualMode*"></a>
  <h4 id="LiteNetLib_NetManager_StartInManualMode_System_Net_IPAddress_System_Net_IPAddress_System_Int32_" data-uid="LiteNetLib.NetManager.StartInManualMode(System.Net.IPAddress,System.Net.IPAddress,System.Int32)">StartInManualMode(IPAddress, IPAddress, Int32)</h4>
  <div class="markdown level1 summary"><p>Start in manual mode and listening on selected port
In this mode you should use ManualReceive (without PollEvents) for receive packets
and ManualUpdate(...) for update and send packets
This mode useful mostly for single-threaded servers</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool StartInManualMode(IPAddress addressIPv4, IPAddress addressIPv6, int port)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Net.IPAddress</span></td>
        <td><span class="parametername">addressIPv4</span></td>
        <td><p>bind to specific ipv4 address</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Net.IPAddress</span></td>
        <td><span class="parametername">addressIPv6</span></td>
        <td><p>bind to specific ipv6 address</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td><p>port to listen</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_StartInManualMode_" data-uid="LiteNetLib.NetManager.StartInManualMode*"></a>
  <h4 id="LiteNetLib_NetManager_StartInManualMode_System_String_System_String_System_Int32_" data-uid="LiteNetLib.NetManager.StartInManualMode(System.String,System.String,System.Int32)">StartInManualMode(String, String, Int32)</h4>
  <div class="markdown level1 summary"><p>Start in manual mode and listening on selected port
In this mode you should use ManualReceive (without PollEvents) for receive packets
and ManualUpdate(...) for update and send packets
This mode useful mostly for single-threaded servers</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool StartInManualMode(string addressIPv4, string addressIPv6, int port)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">addressIPv4</span></td>
        <td><p>bind to specific ipv4 address</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">addressIPv6</span></td>
        <td><p>bind to specific ipv6 address</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">port</span></td>
        <td><p>port to listen</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_Stop_" data-uid="LiteNetLib.NetManager.Stop*"></a>
  <h4 id="LiteNetLib_NetManager_Stop" data-uid="LiteNetLib.NetManager.Stop">Stop()</h4>
  <div class="markdown level1 summary"><p>Force closes connection and stop all threads.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Stop()</code></pre>
  </div>
  
  
  <a id="LiteNetLib_NetManager_Stop_" data-uid="LiteNetLib.NetManager.Stop*"></a>
  <h4 id="LiteNetLib_NetManager_Stop_System_Boolean_" data-uid="LiteNetLib.NetManager.Stop(System.Boolean)">Stop(Boolean)</h4>
  <div class="markdown level1 summary"><p>Force closes connection and stop all threads.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Stop(bool sendDisconnectMessages)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">sendDisconnectMessages</span></td>
        <td><p>Send disconnect messages</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_TriggerUpdate_" data-uid="LiteNetLib.NetManager.TriggerUpdate*"></a>
  <h4 id="LiteNetLib_NetManager_TriggerUpdate" data-uid="LiteNetLib.NetManager.TriggerUpdate">TriggerUpdate()</h4>
  <div class="markdown level1 summary"><p>Triggers update and send logic immediately (works asynchronously)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void TriggerUpdate()</code></pre>
  </div>
  <h3 id="eii">Explicit Interface Implementations
  </h3>
  
  
  <a id="LiteNetLib_NetManager_System_Collections_Generic_IEnumerable_LiteNetLib_NetPeer__GetEnumerator_" data-uid="LiteNetLib.NetManager.System#Collections#Generic#IEnumerable{LiteNetLib#NetPeer}#GetEnumerator*"></a>
  <h4 id="LiteNetLib_NetManager_System_Collections_Generic_IEnumerable_LiteNetLib_NetPeer__GetEnumerator" data-uid="LiteNetLib.NetManager.System#Collections#Generic#IEnumerable{LiteNetLib#NetPeer}#GetEnumerator">IEnumerable&lt;NetPeer&gt;.GetEnumerator()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">IEnumerator&lt;NetPeer&gt; IEnumerable&lt;NetPeer&gt;.GetEnumerator()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerator</span>&lt;<a class="xref" href="LiteNetLib.NetPeer.html">NetPeer</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="LiteNetLib_NetManager_System_Collections_IEnumerable_GetEnumerator_" data-uid="LiteNetLib.NetManager.System#Collections#IEnumerable#GetEnumerator*"></a>
  <h4 id="LiteNetLib_NetManager_System_Collections_IEnumerable_GetEnumerator" data-uid="LiteNetLib.NetManager.System#Collections#IEnumerable#GetEnumerator">IEnumerable.GetEnumerator()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">IEnumerator IEnumerable.GetEnumerator()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.IEnumerator</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="implements">Implements</h3>
  <div>
      <span class="xref">System.Collections.Generic.IEnumerable&lt;T&gt;</span>
  </div>
  <div>
      <span class="xref">System.Collections.IEnumerable</span>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
                <h5>In This Article</h5>
                <div></div>
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
